package com.hs.jhzd.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hs.jhzd.entity.psychology.PsychologyType;
import com.hs.jhzd.repository.psychology.PsychologyTypeRepository;

@RestController
@RequestMapping("/psychology")
public class PsychologyController {

  @Autowired
  private PsychologyTypeRepository typeRepository;

  @RequestMapping("/type")
  public List<PsychologyType> type() {
    return typeRepository.findByDelFlag(false);
  }

}
